import request from '@/utils/request';

export function queryCoursePageList(data) {
	//我的考试分页列表
	return request({
		method: 'get',
		url: '/sysCourse/query',
		params: data,
	})
}

export function addedCourse(data) {
	//添加课程
	return request({
		method: 'post',
		url: '/sysCourse/add',
		data,
	})
}

export function updateCourse(data) {
	//修改课程
	return request({
		method: 'post',
		url: '/sysCourse/update',
		data,
	})
}

export function deleteCourse(id) {
	//删除课程
	return request({
		method: 'get',
		url: '/sysCourse/delete/' + id
	})
}

export function courseDetail(id) {
	//根据id查询课程
	return request({
		method: 'get',
		url: '/sysCourse/query/' + id
	})
}